import React from 'react'
import RecommendCss from './index.module.scss'

function Recommend(props) {
    return (
        <div className={RecommendCss.main}>
            <div className={RecommendCss.comImg}>
                <img className={RecommendCss.contentImg} src={props.cover} alt="" />
                {
                    props.headings.length>1 ? (<div>
                        <img src="https://m.vsigo.cn/static/img/icon_img.png" alt="" />
                        <p>{props.headings.length}</p>
                    </div>) : ""
                }

            </div>
            <p className={RecommendCss.comment}>{props.title} </p>
            <div className={RecommendCss.user}>
                <img src={props.user.head_image} alt="" />
                <p>{props.user.nick_name} </p>
            </div>
        </div>
    )
}
export default Recommend;
